package com.rs.lc.pm.security;

import com.rs.lc.pm.model.user.User;

/**
 * Created by Xavier_Wei on 16/4/5.
 */
public class UserThreadLocal {
    private static ThreadLocal<User> userThreadLocal = new ThreadLocal<User>();

    public static User getUser() {
        return userThreadLocal.get();
    }

    public static void setThreadLocal(User user) {
        userThreadLocal.set(user);
    }
}